package de.justphil.tcg.tcgserver.commons.domain.complete;

import java.util.Date;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;

@XmlRootElement
@XmlAccessorType(XmlAccessType.NONE)
public class CCardInstance {

	@XmlElement
	private long id;
	
	@XmlElement(name = "lat")
	private double latitude;
	
	@XmlElement(name = "lon")
	private double longitude;
	
	@XmlElement
	private CCard card;
	
	@XmlElement
	private long[] decks;
	
	@XmlElement
	private Date created;
	
	@XmlElement
	private Date modified;
	
	
	public CCardInstance() {
		// JAXB conformity
	}

	public CCardInstance(long id, double latitude, double longitude,
			CCard card, long[] decks, Date created, Date modified) {
		super();
		this.id = id;
		this.latitude = latitude;
		this.longitude = longitude;
		this.card = card;
		this.decks = decks;
		this.created = created;
		this.modified = modified;
	}
	
	
	/* ######################################################################## */
	/* ######################################################################## */
	/* ######################################################################## */
	

	public long getId() {
		return id;
	}

	public double getLatitude() {
		return latitude;
	}

	public double getLongitude() {
		return longitude;
	}

	public CCard getCard() {
		return card;
	}

	public long[] getDecks() {
		return decks;
	}

	public Date getCreated() {
		return created;
	}

	public Date getModified() {
		return modified;
	}
	
	
	/* ######################################################################## */
	/* ######################################################################## */
	/* ######################################################################## */
	

	public void setId(long id) {
		this.id = id;
	}

	public void setLatitude(double latitude) {
		this.latitude = latitude;
	}

	public void setLongitude(double longitude) {
		this.longitude = longitude;
	}

	public void setCard(CCard card) {
		this.card = card;
	}

	public void setDecks(long[] decks) {
		this.decks = decks;
	}

	public void setCreated(Date created) {
		this.created = created;
	}

	public void setModified(Date modified) {
		this.modified = modified;
	}
	
	
	
	
	
}
